import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
    public static int fun1(int n) {
        return (int) (n * 0.1);
    }
    public static int fun2(int n) {
        return (int) ((n - 100000) * 0.075) + fun1(100000);
    }
    public static int fun3(int n) {
        return (int) ((n - 200000) * 0.05) + fun2(200000);
    }
    public static int fun4(int n) {
        return (int) ((n - 400000) * 0.03) + fun3(400000);
    }
    public static int fun5(int n) {
        return (int) ((n - 600000) * 0.015) + fun4(600000);
    }

    public static int fun6(int n) {
        return (int) ((n - 1000000) * 0.01) + fun5(1000000);
    }
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int x = scanner.nextInt();
        if (x <= 100000) {
            System.out.println(fun1(x));
        } else if (x <= 200000) {
            System.out.println(fun2(x));
        } else if (x <= 400000) {
            System.out.println(fun3(x));
        } else if (x <= 600000) {
            System.out.println(fun4(x));
        } else if (x <= 1000000) {
            System.out.println(fun5(x));
        } else {
            System.out.println(fun6(x));
        }
    }
}
